function enterKeyPress(e){
	var keycode;
	
	if (window.event) keycode = window.event.keycode;
	else if (e) keycode = e.which;
	
	var username = document.getElementById('username').value;
	var password = document.getElementById('password').value;
	
	var problem = 0;
	if(	username == "" || password == "" ){
		problem = 1;
	}
	if(	keycode==13 && problem == 0) {
		ajaxFunction();
	}
}